|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/local/CyberCP/plogical/__pycache__/ |
Upload File : |
o
��g� � @ s4 d dl Z d dlZd dlZdd� Zdd� Zdd� ZdS )� Nc C s, t �� j}t�|�� | �� ��� d | S �N�:)�uuid�uuid4�hex�hashlib�sha256�encode� hexdigest)�password�salt� r
�+/usr/local/CyberCP/plogical/hashPassword.py�
hash_password s
"r c C s, | � d�\}}|t�|�� |�� ��� kS r )�splitr r r r
)�hashed_password�
user_passwordr r r
r
r �check_password s r c C s* | � d|� �� � }t�|��� }d�|�S )Nr z Basic {0})r r r r
�format)�usernamer �credentials�hashed_credentialsr
r
r �
generateToken s
r )r �bcryptr r r r r
r
r
r �<module> s